package com.huangliusong.order.exception;

import com.huangliusong.order.enums.ResultEnum;

/**
 * @author huangliusong
 * @since 2018/10/26
 * {@link }
 */
public class OrderException extends RuntimeException {
    private Integer code;

    public OrderException(Integer code,String message){
        super(message);
        this.code=code;
    }

    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
    }
}
